package com.crmapi.pojo;


import com.crmapi.group.Save;
import com.crmapi.group.Update;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.io.Serializable;

/**
 * (User)实体类
 *
 * @author makejava
 * @since 2023-11-15 21:51:43
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User  {

    
    private String id;
    @NotBlank(message = "用户名不能为空!",groups = Save.class)
    private String username;
    @NotBlank(message = "密码不能为空!",groups = {Save.class})
    private String password;
    
    private String code;
    
    private String name;
    /**
     * 1 男
            2 女
            3 保密
            
     */
    private Integer gender;
    
    private String deptId;
    
    private String jobId;


    private String mobile;
    
    private String note;
    
    private String roles;
    
    private String createTime;
    
    private String updateTime;
    /**
     * 1 正常
            2 锁定
     */
    private Integer status;
    /**
     * 1 删除  
            0 未删除 
     */
    private int isdel;
    
    private String lastLoginDate;

    private Job job;

    private Dept dept;

    @NotBlank(message = "部门编号为空",groups = {Save.class})
    private String deptNo;

















}

